package com.chujian.system.core.service;


import com.chujian.framework.component.def.YForm;
import com.chujian.framework.component.def.YQuery;
import com.chujian.framework.core.base.BaseService;
import com.chujian.core.entity.CoreComponent;

/**
 * 组件 服务类
 *
 * @author yj
 * @since 2021-08-25
 */
public interface CoreComponentService extends BaseService<CoreComponent> {

    /**
     * 保存查询组件
     *
     * @param query
     * @return
     */
    CoreComponent saveQueryComponent(YQuery query);

    /**
     * 保存Form组件
     * @param form
     * @return
     */
    CoreComponent saveFormComponent(YForm form);
}
